<template>
	<view>
		<view>生命周期</view>
		<navigator url="/pages/cycleDetail/cycleDetail">
			<button>详情</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		onLoad() {
			console.log(`onLoad${this.msg}`)
		}, //初始化 可获取data
		onShow() {
			console.log(`onShow${this.msg}`)
		}, //初始化 可获取data  组件被隐藏后重新在开启继续调用
		onReady() {
			console.log(`onReady${this.msg}`)
		}, //初始化 可获取data
		onHide() {
			console.log(`onHide${this.msg}`)
		}, //离开tabar或者隐藏此组件 触发
		onUnload() {
			console.log(`onUnload${this.msg}`)
		}, //离开组件触发
		// onResize(){},
		// onPullDownRefresh(){},
		// onReachBottom(){},
		// onTabItemTap(){}
		data() {
			return {
				msg: '数据'
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>
